<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libslic3r: Slic3r::ModelVolume Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Slic3r_192px_transparent.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libslic3r
   </div>
   <div id="projectbrief">Library for generating gcode from 3d models</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_slic3r.html">Slic3r</a></li><li class="navelem"><a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_slic3r_1_1_model_volume-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Slic3r::ModelVolume Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_model_8hpp_source.html">Model.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac0e9db93e821845e2bfb8a6f41e42d5c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#ac0e9db93e821845e2bfb8a6f41e42d5c">get_object</a> () const</td></tr>
<tr class="separator:ac0e9db93e821845e2bfb8a6f41e42d5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fcbf8328dc1511abef0f654f274566e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#a2fcbf8328dc1511abef0f654f274566e">material_id</a> () const</td></tr>
<tr class="separator:a2fcbf8328dc1511abef0f654f274566e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a478b130c80f0171728fef5c59d10bf83"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#a478b130c80f0171728fef5c59d10bf83">material_id</a> (<a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a> material_id)</td></tr>
<tr class="separator:a478b130c80f0171728fef5c59d10bf83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39e0ed735dcd7060e69e92f007eafde9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#a39e0ed735dcd7060e69e92f007eafde9">material</a> () const</td></tr>
<tr class="separator:a39e0ed735dcd7060e69e92f007eafde9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a2531ddc6df76a66011eb4142666a2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#a7a2531ddc6df76a66011eb4142666a2a">set_material</a> (<a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a> <a class="el" href="class_slic3r_1_1_model_volume.html#a2fcbf8328dc1511abef0f654f274566e">material_id</a>, const <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> &amp;<a class="el" href="class_slic3r_1_1_model_volume.html#a39e0ed735dcd7060e69e92f007eafde9">material</a>)</td></tr>
<tr class="separator:a7a2531ddc6df76a66011eb4142666a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac848dc0ec9bc91ca0e590de8137fdb6f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#ac848dc0ec9bc91ca0e590de8137fdb6f">assign_unique_material</a> ()</td></tr>
<tr class="separator:ac848dc0ec9bc91ca0e590de8137fdb6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aad3c2832c35e8a391b79c12f00a547b9"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#aad3c2832c35e8a391b79c12f00a547b9">name</a></td></tr>
<tr class="memdesc:aad3c2832c35e8a391b79c12f00a547b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of this <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> object.  <a href="#aad3c2832c35e8a391b79c12f00a547b9">More...</a><br /></td></tr>
<tr class="separator:aad3c2832c35e8a391b79c12f00a547b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95ec125abed630f90d3a46741e60e13b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#a95ec125abed630f90d3a46741e60e13b">mesh</a></td></tr>
<tr class="memdesc:a95ec125abed630f90d3a46741e60e13b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The triangular model.  <a href="#a95ec125abed630f90d3a46741e60e13b">More...</a><br /></td></tr>
<tr class="separator:a95ec125abed630f90d3a46741e60e13b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedae3fe7f61868045c6202c5562bb549"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_dynamic_print_config.html">DynamicPrintConfig</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#aedae3fe7f61868045c6202c5562bb549">config</a></td></tr>
<tr class="separator:aedae3fe7f61868045c6202c5562bb549"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadbe029f67828c16f16a1a962788e8aa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#aadbe029f67828c16f16a1a962788e8aa">modifier</a></td></tr>
<tr class="memdesc:aadbe029f67828c16f16a1a962788e8aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is it an object to be printed, or a modifier volume?  <a href="#aadbe029f67828c16f16a1a962788e8aa">More...</a><br /></td></tr>
<tr class="separator:aadbe029f67828c16f16a1a962788e8aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:aa8c2bf09eb9d929d57be9ae9277e82de"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model_volume.html#aa8c2bf09eb9d929d57be9ae9277e82de">ModelObject</a></td></tr>
<tr class="separator:aa8c2bf09eb9d929d57be9ae9277e82de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An object STL, or a modifier volume, over which a different set of parameters shall be applied. <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> instances are owned by a <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a>. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ac848dc0ec9bc91ca0e590de8137fdb6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac848dc0ec9bc91ca0e590de8137fdb6f">&#9670;&nbsp;</a></span>assign_unique_material()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> * Slic3r::ModelVolume::assign_unique_material </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a unique <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> to the current <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> </p><dl class="section return"><dt>Returns</dt><dd>ModelMaterial* pointer to the new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> </dd></dl>

</div>
</div>
<a id="ac0e9db93e821845e2bfb8a6f41e42d5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0e9db93e821845e2bfb8a6f41e42d5c">&#9670;&nbsp;</a></span>get_object()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a>* Slic3r::ModelVolume::get_object </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the parent object owning this modifier volume. </p><dl class="section return"><dt>Returns</dt><dd>ModelObject* pointer to the owner <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> </dd></dl>

</div>
</div>
<a id="a39e0ed735dcd7060e69e92f007eafde9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39e0ed735dcd7060e69e92f007eafde9">&#9670;&nbsp;</a></span>material()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> * Slic3r::ModelVolume::material </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the current <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> in this <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> object </p><dl class="section return"><dt>Returns</dt><dd>ModelMaterial* a pointer to the <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> </dd></dl>

</div>
</div>
<a id="a2fcbf8328dc1511abef0f654f274566e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fcbf8328dc1511abef0f654f274566e">&#9670;&nbsp;</a></span>material_id() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a> Slic3r::ModelVolume::material_id </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the material id of this <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> object </p><dl class="section return"><dt>Returns</dt><dd>t_model_material_id the material id string </dd></dl>

</div>
</div>
<a id="a478b130c80f0171728fef5c59d10bf83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a478b130c80f0171728fef5c59d10bf83">&#9670;&nbsp;</a></span>material_id() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::ModelVolume::material_id </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a>&#160;</td>
          <td class="paramname"><em>material_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the material id to this <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> object </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">material_id</td><td>t_model_material_id the id of the material </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7a2531ddc6df76a66011eb4142666a2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a2531ddc6df76a66011eb4142666a2a">&#9670;&nbsp;</a></span>set_material()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::ModelVolume::set_material </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a>&#160;</td>
          <td class="paramname"><em>material_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> &amp;&#160;</td>
          <td class="paramname"><em>material</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> to this <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">material_id</td><td>t_model_material_id the id of the material to be added </td></tr>
    <tr><td class="paramname">material</td><td><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> the material to be coppied </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="aa8c2bf09eb9d929d57be9ae9277e82de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8c2bf09eb9d929d57be9ae9277e82de">&#9670;&nbsp;</a></span>ModelObject</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aedae3fe7f61868045c6202c5562bb549"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedae3fe7f61868045c6202c5562bb549">&#9670;&nbsp;</a></span>config</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_dynamic_print_config.html">DynamicPrintConfig</a> Slic3r::ModelVolume::config</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Configuration parameters specific to an object model geometry or a modifier volume, overriding the global <a class="el" href="namespace_slic3r.html">Slic3r</a> settings and the <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> settings. </p>

</div>
</div>
<a id="a95ec125abed630f90d3a46741e60e13b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95ec125abed630f90d3a46741e60e13b">&#9670;&nbsp;</a></span>mesh</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> Slic3r::ModelVolume::mesh</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The triangular model. </p>

</div>
</div>
<a id="aadbe029f67828c16f16a1a962788e8aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadbe029f67828c16f16a1a962788e8aa">&#9670;&nbsp;</a></span>modifier</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::ModelVolume::modifier</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Is it an object to be printed, or a modifier volume? </p>

</div>
</div>
<a id="aad3c2832c35e8a391b79c12f00a547b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad3c2832c35e8a391b79c12f00a547b9">&#9670;&nbsp;</a></span>name</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Slic3r::ModelVolume::name</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Name of this <a class="el" href="class_slic3r_1_1_model_volume.html">ModelVolume</a> object. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/libslic3r/<a class="el" href="_model_8hpp_source.html">Model.hpp</a></li>
<li>src/libslic3r/<a class="el" href="_model_8cpp.html">Model.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
